import Layout from '@/layout'

const operationRouter = {
  path: '/operation',
  component: Layout,
  redirect: '/operation/siteConfig',
  name: 'Operation',
  meta: {
    title: '系统设置',
    icon: 'clipboard',
    roles: ['admin']
  },
  children: [
    {
      path: 'siteConfig',
      component: () => import('@/views/systemSetting/siteConfig'),
      name: 'siteConfig',
      meta: { title: '系统信息配置', icon: '' }
    },
    {
      path: 'dataConfig',
      name: 'DataConfig',
      component: () => import('@/views/systemSetting/dataConfig'),
      meta: {
        title: '公用数据配置',
        icon: 'clipboard',
        roles: ['admin']
      },
      children: [
        {
          path: 'dataConfigOther',
          component: () => import('@/views/systemSetting/dataConfig/dataConfigOther'),
          name: 'dataConfigOther',
          meta: { title: '其他公用数据', icon: '' }
        },
      ]
    },
    // {
    //   path: 'dataConfig',
    //   component: () => import('@/views/systemSetting/dataConfig'),
    //   name: 'dataConfig',
    //   meta: { title: '公用数据配置', icon: '' }
    // },
    {
      path: 'identityManager',
      component: () => import('@/views/systemSetting/administratorAuthority/identityManager'),
      name: 'identityManager',
      meta: { title: '角色管理', icon: '' }
    },
    {
      path: 'adminList',
      component: () => import('@/views/systemSetting/administratorAuthority/adminList'),
      name: 'adminList',
      meta: { title: '管理员列表', icon: '' }
    }
  ]
}

export default operationRouter  //collate
